#if __has_include(<DTBaseTool/DTBaseTool>)

#import <DTBaseTool/DTKBaseViewController.h>
#import <DTBaseTool/DTKTool.h>
#import <DTBaseTool/NSDictionary+NullSaf.h>
#import <DTBaseTool/NSString+DT.h>
//#import <DTBaseTool/UIScrollView+EmptyDataSet.h>
#import <DTBaseTool/DTKNetManger.h>
#import <DTBaseTool/YCMenuView.h>

//#import <AFNetworking/AFNetworking.h>
//#import <Masonry/Masonry.h>
//#import <MJRefresh/MJRefresh.h>
//#import <IQKeyboardManager/IQKeyboardManager.h>
//#import <YYModel/YYModel.h>
//#import <BRPickerView/BRPickerView.h>
//#import <SVProgressHUD/SVProgressHUD.h>

#else

#import "DTKBaseViewController.h"
#import "DTKTool.h"
#import "NSDictionary+NullSaf.h"
#import "NSString+DT.h"
//#import "UIScrollView+EmptyDataSet.h"
#import "DTKNetManger.h"
#import "YCMenuView.h"

//#import <AFNetworking.h>
//#import <Masonry.h>
//#import <MJRefresh.h>
//#import <IQKeyboardManager.h>
//#import <YYModel.h>
//#import <BRPickerView.h>
//#import <SVProgressHUD.h>

#endif

#define DTKSCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)
#define DTKSCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)
#define DTKwt(x)                ((x)*([[UIScreen mainScreen] bounds].size.width)/375.0f) ///写的短点
#define DTKFont(x)              [UIFont systemFontOfSize:round(DTKwt(x))]///字体取整
#define DTKCFont(x)             [UIFont fontWithName:@"Helvetica-Bold" size:round(DTKwt(x))]///字体加粗
#define DTKimageView(x)             [[UIImageView alloc] initWithImage:[UIImage imageNamed:x]]


//---------------判断刘海屏
#define DTKiPhoneX (@available(iOS 11.0, *) && ([UIApplication sharedApplication].keyWindow.safeAreaInsets.bottom > 0))

#define DTKTop (DTKiPhoneX ? 44 :20) ///状态栏安全距离+状态栏
#define DTKSunTop (DTKiPhoneX ? 24 :0)//全面屏和非全面屏 导航栏差值
#define DTKYiphoneX (DTKiPhoneX?88:64)
#define DTKnav_HeightX (DTKiPhoneX ? 88 : 64)
#define DTKtabBar_HeightX (DTKiPhoneX ? 83 : 49)
#define DTKSafeAreaTopHeight (DTKiPhoneX ? 88 : 64)
#define DTKSafeAreaBottomHeight (DTKiPhoneX ? 34 : 0)

#define DTKweakS __weak typeof (self) weakSelf = self;






#ifdef DEBUG
#define DTKNSLog(format, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(format), ##__VA_ARGS__] UTF8String] )
#else
#define NSLog(format, ...)
#endif
